/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#startBtn {
    background-color: #4CAF50;
    color: white;
}

#startBtn:hover:not(:disabled) {
    background-color: #45a049;
}

#startBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#pauseBtn {
    background-color: #ff9800;
    color: white;
}

#pauseBtn:hover:not(:disabled) {
    background-color: #e68a00;
}

#pauseBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#stopBtn {
    background-color: #f44336;
    color: white;
}

#stopBtn:hover:not(:disabled) {
    background-color: #d32f2f;
}

#stopBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.stats {
    display: flex;
    gap: 20px;
    margin-left: auto;
    font-size: 14px;
    color: #555;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-container {
    width: 100%;
    background: black;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

canvas {
    width: 100%;
    display: block;
    background-color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .stats {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    button {
        padding: 12px;
        width: 100%;
    }
}
